<?php

class Admin_Form_StateAdd extends Zend_Form {

    public function init() {
        $this->setMethod("post");

        #name
        $name = new Zend_Form_Element_Text('name');
        $name->setLabel("Enter State Name:")
                ->setAttribs(array('placeholder' => 'Enter State Name'))
                ->setRequired(true);

        #submit
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Add State')
                ->setAttribs(array('class' => 'btn btn-success'));

        #add elements
        $this->addElements(array($name, $submit));
    }

}

